namespace ErkerTech.DeltaScope.Engine
{
    public class DeltaString
    {
        public readonly string Value;
        public readonly int HashCode;

        public DeltaString(string value, bool bCaseSensitive = true)
        {
            Value = value;
            HashCode = bCaseSensitive ? value.GetHashCode() : value.ToLower().GetHashCode();
        }
        public DeltaString(string value, int hashCode)
        {
            Value = value;
            HashCode = hashCode;
        }
    }
}